Telegram Group & Telegram Channel
دریافت اطلاعات شاخص کل و مقایسه همبستگی شاخص کل با نماد شستا (مثال)
در مثال این پست که بر اساس ماژول tsemodule5 نوشته شده است، اطلاعات شاخص و نماد شستا برای 50 روز اخیر دریافت و رسم می شود و همبستگی میان آنها نمایش داده می شود.

import tsemodule5 as tm5
import matplotlib.pyplot as plt
import pandas as pd
plt.style.use("ggplot")
tehranindex=tm5.index(value=50,progress=False)
shasta = tm5.stock("شستا",value=50,progress=False,standard=True,newfile=True)
df=pd.DataFrame({"tehranindex":tehranindex["Close"],"shasta":shasta["Close"]},index=tehranindex.index)
df["tehranindex"].plot(figsize=(15,6),label="Tehran Index")
df["shasta"].plot(secondary_y=True,label="Shasta Stock")
print("Correlation is:",round(df.corr().iloc[0,1],2)*100,"%")
plt.legend()
plt.show()


#tsemodule



tg-me.com/python_for_student/557
Create:
Last Update:

دریافت اطلاعات شاخص کل و مقایسه همبستگی شاخص کل با نماد شستا (مثال)
در مثال این پست که بر اساس ماژول tsemodule5 نوشته شده است، اطلاعات شاخص و نماد شستا برای 50 روز اخیر دریافت و رسم می شود و همبستگی میان آنها نمایش داده می شود.

import tsemodule5 as tm5
import matplotlib.pyplot as plt
import pandas as pd
plt.style.use("ggplot")
tehranindex=tm5.index(value=50,progress=False)
shasta = tm5.stock("شستا",value=50,progress=False,standard=True,newfile=True)
df=pd.DataFrame({"tehranindex":tehranindex["Close"],"shasta":shasta["Close"]},index=tehranindex.index)
df["tehranindex"].plot(figsize=(15,6),label="Tehran Index")
df["shasta"].plot(secondary_y=True,label="Shasta Stock")
print("Correlation is:",round(df.corr().iloc[0,1],2)*100,"%")
plt.legend()
plt.show()


#tsemodule

BY پایتون به زبان ساده


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/python_for_student/557

View MORE
Open in Telegram


پایتون به زبان ساده Telegram | DID YOU KNOW?

Date: |

NEWS: Telegram supports Facetime video calls NOW!

Secure video calling is in high demand. As an alternative to Zoom, many people are using end-to-end encrypted apps such as WhatsApp, FaceTime or Signal to speak to friends and family face-to-face since coronavirus lockdowns started to take place across the world. There’s another option—secure communications app Telegram just added video calling to its feature set, available on both iOS and Android. The new feature is also super secure—like Signal and WhatsApp and unlike Zoom (yet), video calls will be end-to-end encrypted.

However, analysts are positive on the stock now. “We have seen a huge downside movement in the stock due to the central electricity regulatory commission’s (CERC) order that seems to be negative from 2014-15 onwards but we cannot take a linear negative view on the stock and further downside movement on the stock is unlikely. Currently stock is underpriced. Investors can bet on it for a longer horizon," said Vivek Gupta, director research at CapitalVia Global Research.

پایتون به زبان ساده from tr


Telegram پایتون به زبان ساده
FROM USA